        
function init() {
  loadGifts();
}
function loadGifts() {
  var params = {};
  params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;
  params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;
  var url = 'http://mapgametesting.appspot.com/gifts';
  gadgets.io.makeRequest(url, onLoadGifts, params);
}

function onLoadGifts(response) {
  var gifts = response.data;
         /* var html = new Array();
          for (var i = 0; i < gifts.length; i++) {
            html.push(' value=' + gifts[i].key + ' name=' + gifts[i].name );
          }
          alert(html);*/
}


  